Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Marketplace and other unread messages in tray icon number #2133

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

mquevill
Copy link
Collaborator

This will loop through all the chat categories (Chats, People, Marketplace, Message Requests, Archive) and extract any numbers in its ariaLabel. While I don't expect People or Archive to have unread items, this will still loop through them. This is built off of discussion in #2109 with @stkrknds and @sgtcoder.

Technically, the elementReady() only waits for the first element (Chats), but it still seems to work as expected after startup.

One strange thing: if you have unread Marketplace messages when Caprine starts up, it won't load this number until Marketplace is selected. But this is an issue with Messenger.com itself, not with Caprine.

@sgtcoder
Copy link
Contributor

This is awesome. I will test this weekend and also open a PR to have the package.json packages updated.

@dusansimic dusansimic merged commit 35e5eb8 into sindresorhus:main Feb 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants